package com.mayuan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mayuan.domain.dto.AddArticleDto;
import com.mayuan.domain.dto.ArticleListDto;
import com.mayuan.domain.entity.Article;
import com.mayuan.domain.ResponseResult;
import com.mayuan.domain.vo.ArticleInfoVo;

public interface ArticleService extends IService<Article> {
    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto articleDto);

    ResponseResult pageArticleList(Integer pageNum, Integer pageSize, ArticleListDto articleListDto);

    ResponseResult getArticleInfo(Long id);

    ResponseResult updateArticle(ArticleInfoVo articleInfoVo);

    ResponseResult deleteById(Long id);
}
